//
//  YDYTitleBtn.m
//  DY_Weibo3
//
//  Created by 杨德勇 on 2016/8/17.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYTitleBtn.h"

@implementation YDYTitleBtn

-(void)layoutSubviews{
    [super layoutSubviews];
    //按钮图片和文字交换位置
    CGRect titleFrame = self.titleLabel.frame;
    titleFrame.origin.x = 0;
    self.titleLabel.frame = titleFrame;
    
    CGRect imgFrame = self.imageView.frame;
    imgFrame.origin.x = self.titleLabel.frame.size.width;
    self.imageView.frame = imgFrame;
}

@end
